<?php

get_header();
?>
 <!--contact start-->
<section class="blog" id="blog">
    <div class="container topCon">

      <div class="heading">
          <h2><?php _e('Search Results', QVA_LANG) ?></h2>
      </div>

      <div class="row">

        <div class="col-lg-9">
          <?php
            // $showPosts = get_option("posts_per_page");
            // $showPosts = isset($showPosts) ? $showPosts : 4; 
            // query_posts( array("posts_per_page"=>$showPosts) );
          	if (  have_posts() ) : while ( have_posts() ) : the_post();
              ?>
              <div class="post post-single">
                <div class="inner-spacer-right-lrg">

                  <div class="post-media">
                      <?php qva_view_type($post->ID); ?>
                  </div>
                  <div class="post-title">
                    <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
                    <?php qva_get_meta_data(); ?>
                  </div>
                </div>

                <div class="post-body">
                  <?php the_excerpt(); ?>
                  <div>
                    <a href="<?php the_permalink(); ?>">Continue Reading...</a>
                  </div>
                </div>
              </div>
              <?php 
                endwhile;
          ?>
          
          <div class="pagination">
              <?php get_template_part("pagination"); ?>
          </div>
        <?php 
        else :
            ?>
            <h4>Sorry! There is no post ;(</h4>
            <?php 
        endif; ?>

        </div>

        <div class="col-lg-3">
          <div class="sidebar">
            <?php get_sidebar(); ?>
          </div><!-- end sidebar -->
        </div>

      </div>

    </div>
</section>

<?php 
get_footer();
?>